<extend name="Public/base"/>

<block name="body">
	<script type="text/javascript" src="__STATIC__/uploadify/jquery.uploadify.min.js"></script>
    <div class="main-title">
        <h2>商品订单详情</h2>
    </div>
    <div class="tab-wrap">
    	<ul class="tab-nav nav">
			<li data-tab="tab1" class="current"><a href="javascript:void(0);">基 础</a></li>
			<li data-tab="tab2"><a href="javascript:void(0);">收 货</a></li>
			<li data-tab="tab3"><a href="javascript:void(0);">商 品</a></li>
		</ul>
		<div class="tab-content">
    		<form action="__SELF__" method="post" class="form-horizontal" autocomplete="off">
		    	<div id="tab1" class="tab-pane in tab1">
		    		<div class="form-item">
		    			<label class="item-label">订单号</label>
		    			<div class="controls">
		    				<input type="text" class="text input-large" value="{$info.order_no}" disabled="disabled">
		    			</div>
		    		</div>
		    		<div class="form-item">
		    			<label class="item-label">下单会员</label>
		    			<div class="controls">
		    				<input type="text" class="text input-large" value="{$info.uid|get_username}" disabled="disabled">
		    			</div>
		    		</div>
		    		<div class="form-item">
		    			<label class="item-label">订单状态</label>
		    			<div class="controls">
		    				<input type="text" class="text input-large" value="{$info.status_text}" disabled="disabled">
		    			</div>
		    		</div>
		    		<div class="form-item">
		    			<label class="item-label">下单时间</label>
		    			<div class="controls">
		    				<input type="text" class="text input-large" value="{$info.create_time|time_format}" disabled="disabled">
		    			</div>
		    		</div>
		    		<notempty name="info.confirm_time">
		    			<div class="form-item">
			    			<label class="item-label">提交时间</label>
			    			<div class="controls">
			    				<input type="text" class="text input-large" value="{$info.confirm_time|time_format}" disabled="disabled">
			    			</div>
			    		</div>
		    		</notempty>
		    		<notempty name="info.shipping_time">
		    			<div class="form-item">
			    			<label class="item-label">发货时间</label>
			    			<div class="controls">
			    				<input type="text" class="text input-large" value="{$info.shipping_time|time_format}" disabled="disabled">
			    			</div>
			    		</div>
		    		</notempty>
		    		<notempty name="info.complate_time">
		    			<div class="form-item">
			    			<label class="item-label">收货时间</label>
			    			<div class="controls">
			    				<input type="text" class="text input-large" value="{$info.complate_time|time_format}" disabled="disabled">
			    			</div>
			    		</div>
		    		</notempty>
		    		<div class="form-item">
		    			<label class="item-label">买家留言</label>
		    			<div class="controls">
		    				<label class="textarea input-large">
		    					<textarea disabled="disabled">{$info.comment}</textarea>
		    				</label>
		    			</div>
		    		</div>
		    	</div>
		    	<div id="tab2" class="tab-pane tab2">
					<div class="form-item">
		    			<label class="item-label">收货人</label>
		    			<div class="controls">
		    				<input type="text" class="text input-large" value="{$info.consignee}" disabled="disabled">
		    			</div>
		    		</div>
		    		<div class="form-item">
		    			<label class="item-label">联系电话</label>
		    			<div class="controls">
		    				<input type="text" class="text input-large" value="{$info.mobile}" disabled="disabled">
		    			</div>
		    		</div>
		    		<div class="form-item">
		    			<label class="item-label">省份</label>
		    			<div class="controls">
		    				<input type="text" class="text input-large" value="{$info.province_id|get_table_field=###,'province_id','province','hat_province'}" disabled="disabled">
		    			</div>
		    		</div>
		    		<div class="form-item">
		    			<label class="item-label">城市</label>
		    			<div class="controls">
		    				<input type="text" class="text input-large" value="{$info.city_id|get_table_field=###,'city_id','city','hat_city'}" disabled="disabled">
		    			</div>
		    		</div>
		    		<div class="form-item">
		    			<label class="item-label">区县</label>
		    			<div class="controls">
		    				<input type="text" class="text input-large" value="{$info.area_id|get_table_field=###,'area_id','area','hat_area'}" disabled="disabled">
		    			</div>
		    		</div>
		    		<div class="form-item">
		    			<label class="item-label">详细地址</label>
		    			<div class="controls">
		    				<label class="textarea input-large">
		    					<textarea disabled="disabled">{$info.address}</textarea>
		    				</label>
		    			</div>
		    		</div>
				</div>
				<div id="tab3" class="tab-pane tab3">
					<div class="form-item">
						<div class="controls">
							<div class="data-table table-striped">
								<table class="">
									<thead>
										<tr>
											<th class="">商品名称</th>
											<th class="">商品选项</th>
											<th class="">售价</th>
											<th class="">数量</th>
											<th class="">合计</th>
										</tr>
									</thead>
									<tbody>
										<volist name=":getOrderProducts($info['id'])" id="vo">
											<tr class="OptionPriceTR">
												<td class=""><a href="{:U('Product/edit', array('id'=>$vo['product_id']))}"></a>
												{$vo.product_id|get_table_field=###,'id','title','product'}</td>
												<td class="">{$vo.product_attr}</td>
												<td class="">￥{$vo.price}</td>
												<td class=""><span class="quantity">{$vo.quantity}</span></td>
												<td class="">￥{:($vo['price']+$vo['identify_price'])*$vo['quantity']}</td>
											</tr>
										</volist>
										<tr>
											<td class=""></td>
											<td class=""></td>
											<td class=""></td>
											<td class="" align="right">合计：</td>
											<td class="">￥{$info.price}</td>
										</tr>
									</tbody>
								</table>
							</div>
						</div>
					</div>
				</div>
				<div class="form-item">
					<a class="btn btn-return" href="{:U('Order/index')}">返 回</a>
					<input type="hidden" name="id" value="{$info.id}">
				</div>
			</form>
		</div>
	</div>
</block>

<block name="script">
<script type="text/javascript">
//导航高亮
highlight_subnav('{:U('Order/index')}');
showTab();
</script>
</block>